package com.leyou.dao;

import com.leyou.domain.db1entity.Couponactivity;
import com.leyou.domain.db1entity.CouponactivityExample;
import com.leyou.domain.db1entity.Couponandactivity;
import com.leyou.domain.db1entity.Log;
import com.leyou.domain.vo.CouponActivityGetVO;
import com.leyou.domain.vo.CouponActivityPutVO;
import com.leyou.domain.vo.CouponActivityUpdateVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CouponactivityMapper {
    long countByExample(CouponactivityExample example);

    int deleteByExample(CouponactivityExample example);

    int deleteByPrimaryKey(String activitykey);

    int insert(Couponactivity record);

    int insertSelective(Couponactivity record);

    List<Couponactivity> selectByExample(CouponactivityExample example);

    Couponactivity selectByPrimaryKey(String activitykey);

    int updateByExampleSelective(@Param("record") Couponactivity record, @Param("example") CouponactivityExample example);

    int updateByExample(@Param("record") Couponactivity record, @Param("example") CouponactivityExample example);

    int updateByPrimaryKeySelective(Couponactivity record);

    int updateByPrimaryKey(Couponactivity record);


    List<CouponActivityGetVO> getCouponActivityList(@Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize);

    public int putCounponActivity(CouponActivityPutVO couponActivityPutVo);

    int putActivityAndCouponList(@Param("list") List<Couponandactivity> couponandactivityList);

    List<Log> getLogList(@Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize);

    int updateActivityById(CouponActivityUpdateVO couponActivityUpdateVO);
}
